package top.yuyufeng.mbuy.entity;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

@Data
@Table(name = "mb_product")
public class Product {
    @Id
    private Integer id;

    @Column(name = "category_id")
    private Integer categoryId;

    private String name;

    private String subtitle;

    @Column(name = "main_image")
    private String mainImage;

    /**
     * json格式，用户扩展
     */
    @Column(name = "sub_image")
    private String subImage;

    private String detail;

    private BigDecimal price;

    /**
     * 库存
     */
    private Integer stock;

    /**
     * 商品状态 1-在售 2-下架 3-删除
     */
    private Integer status;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;


}